




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/15/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectaccept.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectaccept.entity.YfProjectAccept;
import com.application.yfprojectaccept.struts.form.YfProjectAcceptForm;
import com.application.yfprojectaccept.dao.YfProjectAcceptDAO;
 /**
 * 
 * Description:YfProjectAcceptService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/15/2012 
 * 
 */
public class YfProjectAcceptService extends BaseService
{
	private YfProjectAcceptDAO yfProjectAcceptDAO;

	public YfProjectAcceptDAO getYfProjectAcceptDAO() {
		return this.yfProjectAcceptDAO;
	}

	public void setYfProjectAcceptDAO(YfProjectAcceptDAO yfProjectAcceptDAO) {
		this.yfProjectAcceptDAO = yfProjectAcceptDAO;
	}
        

        public YfProjectAccept getYfProjectAccept(YfProjectAccept yfProjectAccept) {
		return (YfProjectAccept) this.getBaseDao().queryByPk(yfProjectAccept, yfProjectAccept.getId());
	}
	
	public Integer getAllCountYfProjectAccept(YfProjectAcceptForm yfProjectAcceptForm){
		return this.yfProjectAcceptDAO.getAllCountYfProjectAccept(yfProjectAcceptForm);
	}
	
	public List<YfProjectAccept> searchYfProjectAccept(YfProjectAcceptForm yfProjectAcceptForm, PageBean pageBean) throws Exception {
		List<YfProjectAccept> yfProjectAcceptList = (List) this.yfProjectAcceptDAO.searchYfProjectAccept(yfProjectAcceptForm, pageBean);
		return yfProjectAcceptList;
	}
        
        public void deleteYfProjectAccepts(YfProjectAcceptForm yfProjectAcceptForm){
	   this.yfProjectAcceptDAO.deleteYfProjectAccepts(yfProjectAcceptForm);	 
	}
}
